package com.timoon.component.panel.jqgrid;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public interface JqGridService {

	/**
	 * 获取grid数据
	 * @param request
	 * @return	[{key:value,key:value},{}]
	 */
	public String getGridData(HttpServletRequest request); 
	
	/**
	 * getGridData的辅助方法,计算总数
	 * @param request
	 * @return
	 */
	public Integer countGridData(HttpServletRequest request);
	
	/**
	 * 删除
	 * 删除用户选中的记录，格式为:"id1,id2,id3"
	 * @param deleteIds
	 */
	public void deleteByIds(String deleteIds);
	
	public void saveOrUpdateRecord(Map<String,Object> map);
	
	public Object loadRecordById(String id);
}
